//
//  RNOLBorrowMoneyAlertTipView.m
//  RongNiuOnline
//
//  Created by apple on 2018/5/2.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLBorrowMoneyAlertTipView.h"

@interface RNOLBorrowMoneyAlertTipView ()

@property (weak, nonatomic) IBOutlet UIView *contentView;

@end


@implementation RNOLBorrowMoneyAlertTipView


- (void)awakeFromNib{
    [super awakeFromNib];
    self.contentView.layer.cornerRadius = 10;
    [self insertSubview: self.contentView  atIndex: 0];
}


+ (void)showAlertTip{
    WGBCustomPopUpView *popUpView = [[WGBCustomPopUpView alloc] init];
    popUpView.touchDismiss = YES;
    
    UIView *bgView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    bgView.backgroundColor = [UIColor clearColor];
    bgView.userInteractionEnabled = YES;
    
    RNOLBorrowMoneyAlertTipView *alertView = [RNOLBorrowMoneyAlertTipView FromXIB];
    alertView.frame = CGRectMake(0, 100, KWIDTH , 400);
    [bgView addSubview: alertView];
    
    popUpView.contentView = bgView;
    popUpView.animationType = WGBAlertAnimationTypeCenter;
    [popUpView show];
}


@end
